//
//  BaseTableViewController.m
//  OSChina
//
//  Created by 8b410-2 on 16/12/26.
//  Copyright © 2016年 abb. All rights reserved.
//

#import "BaseTableViewController.h"

@interface BaseTableViewController ()

@end

@implementation BaseTableViewController

- (instancetype)init {
    if (self = [super init]) {
        _tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    }
    return self;
}
- (instancetype)initWithStyle:(UITableViewStyle)style {
    if (self = [super init]) {
        _tableView = [[UITableView alloc] initWithFrame:CGRectZero style:style];
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:_tableView];
    [_tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view).insets(UIEdgeInsetsMake(0, 0, 0, 0));
    }];
}
- (void)setUpRefresh {
    self.tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(refresh)];
}
- (void)setUpLoadMore {
    self.tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMore)];
}
- (void)refresh {
    
}
- (void)loadMore {
    
}
@end
